package com.ming.service;

import java.time.LocalDate;
import java.util.List;
import java.util.Optional;

import com.ming.domain.Book;

public interface BookService {

    Optional<Book> findOne(Integer id);

    List<Book> findAll();

    Optional<Book> updatePurchaseDate(Integer id, LocalDate date);

    List<Book> findAllByDate(LocalDate date);
}
